#!/bin/bash
# 提前配置本地hosts文件
# 10.50.47.244 kafka_host


# 路径声明
path=$(pwd)
dataPath=$path/.docker

#安装kafka
docker run -dti --name kafka -p 2181:2181 -p 9092:9092 \
        --env ADVERTISED_HOST=kafka_host \
        --env ADVERTISED_PORT=9092 \
        spotify/kafka

# web管理
docker run -dti --name kafka-console -p 7766:7766 \
-v $dataPath/consol/data:/app/data \
-v $dataPath/consol/log:/app/log \
wdkang/kafka-console-ui




